package com.kamkor.interviewer.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.kamkor.interviewer.shared.UserDetails;
import com.kamkor.interviewer.shared.InterviewDetails;
import com.kamkor.interviewer.shared.QuestionAnswerDetails;

/**
 * 
 * @author kamkor
 *
 */
@RemoteServiceRelativePath("interviewService")
public interface InterviewService extends RemoteService {
	UserDetails createInterview(InterviewDetails interviewDetails);
	QuestionAnswerDetails createQuestionAnswer(Long interviewId, String question, String answer);	
	InterviewDetails getInterview(Long id);
	List<InterviewDetails> getInterviews();
	List<QuestionAnswerDetails> getQuestionAnswer(Long interviewId);
	void updateQuestionAnswer(List<QuestionAnswerDetails> list);
	void deleteQuestionAnswer(Long id);
	boolean authenticateInterviewer(Long interviewId, Long key);
	boolean authenticateInterviewed(Long interviewId, Long key);
	String getRequestHost();
}
